
# windows                        linux                        macos
# windows-386 (32位X86架构)       linux-386 (32位X86架构)       darwin-amd64 (64位 X86架构CPU)
# windows-amd64 (64位X86架构)     linux-amd64 (64位X86架构)     darwin-arm64 (64位 ARM架构CPU)
#                                linux-arm64 (64位ARM架构)

workdir=$(basename "$PWD")

# GOOS=darwin GOARCH=arm64 go build -o ${workdir}_darwin_arm
# GOOS=darwin GOARCH=amd64 go build -o ${workdir}_darwin_amd

# GOOS=linux GOARCH=386 go build -o ${workdir}_linux_386 # 32位
# GOOS=linux GOARCH=arm64 go build -o ${workdir}_linux_arm
GOOS=linux GOARCH=amd64 go build -o ${workdir}_linux_amd

# GOOS=windows GOARCH=386 go build -o ${workdir}_windows_386.exe # 32位
# GOOS=windows GOARCH=arm64 go build -o ${workdir}_windows_arm.exe
# GOOS=windows GOARCH=amd64 go build -o ${workdir}_windows_amd.exe

